package com.suoyue.store.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class Log implements Serializable {
    private Integer logid;
    private Integer uid;
    private Integer pid;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;
    private Integer action;
    private Integer oid;

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Log(Integer logid, Integer uid, Integer pid, Date time, Integer action, Integer oid) {
        this.logid = logid;
        this.uid = uid;
        this.pid = pid;
        this.time = time;
        this.action = action;
        this.oid = oid;
    }

    public Log() {
    }

    public Integer getLogid() {
        return logid;
    }

    public void setLogid(Integer logid) {
        this.logid = logid;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getAction() {
        return action;
    }

    public void setAction(Integer action) {
        this.action = action;
    }

    @Override
    public String toString() {
        return "Log{" +
                "logid=" + logid +
                ", uid=" + uid +
                ", pid=" + pid +
                ", time=" + time +
                ", action=" + action +
                ", oid=" + oid +
                '}';
    }
}
